<?php

use think\migration\Seeder;
use think\facade\Db;

class InsertSystemGroup extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run()
    {
        DB::name('system_group')->insertAll([
            [
                'org_id'=>1,
                'org_type'=>0,
                'org_name'=>'总部（根目录）',
                'parent_org_id' => 0,
                'sort' => '0001',
                'action'=> '{"100101":"00","100102":"00,01,02,03,04,05,06","100103":"00","100116":"00","100152":"00","100154":"00","100155":"00","100156":"00","100157":"00","100190":"00","100700":"00","101037":"00","102918":"00","102919":"00","102925":"00","102926":"00","102927":"00","102928":"00","102929":"00","102930":"00","102931":"00","102932":"00","102933":"00","102934":"00","102935":"00","102936":"00","102937":"00","102938":"00","102939":"00","102940":"00","102941":"00","102943":"00","102944":"00","102947":"00","102948":"00","layTableRadio_1":"on"}'
            ]
        ]);
    }
}